import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
type int = number;
//class SBookWedding

export class SBookWedding extends IMessageBase {
  constructor(arg1: Boolean = false) {
    
    super();if (arg1) {
      MessageManager.instance().regist(this);
    }
    return;
  }

  public /* override */ getType(): int {
    return this._type;
  }

  public /* override */ clone(): IMessageBase {
    return new SBookWedding();
  }

  public /* override */ __write(arg1: SerializeStream): void {
    arg1.writeInt(this.recordId);
    arg1.writeInt(this.weddingType);
    arg1.writeInt(this.status);
    arg1.writeDate(this.weddingDt);
    return;
  }

  public /* override */ __read(arg1: SerializeStream): void {
    this.recordId = arg1.readInt();
    this.weddingType = arg1.readInt();
    this.status = arg1.readInt();
    this.weddingDt = arg1.readDate();
    return;
  }

  public /* const */ _type: int = 196;

  public /* var */ recordId!: int;

  public /* var */ weddingType!: int;

  public /* var */ status!: int;

  public /* var */ weddingDt!: Date;

  public static /* var */ _regist: SBookWedding = new SBookWedding(true);
}
